package com.lagou.rpc.consumer.config;

import com.lagou.rpc.api.IUserService;
import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class MyConfigBean {
    @Bean
    IUserService getUserService(){
        return (IUserService) RpcClientProxy.createProxy(IUserService.class);
    }
}
